package org.minbox.framework.microservice.order.mapper;

import com.gitee.hengboy.mybatis.enhance.mapper.EnhanceMapper;
import org.apache.ibatis.annotations.Param;
import org.minbox.framework.microservice.common.entity.OrderInfo;

/**
 * 订单数据接口定义
 *
 * @author 恒宇少年
 */
public interface OrderMapper extends EnhanceMapper<OrderInfo, Integer> {
    /**
     * 方法命名规则查询：根据{@link OrderInfo#getNumber()}进行查询订单基本信息
     *
     * @param number
     * @return
     */
    OrderInfo findByNumber(@Param("number") String number);
}
